<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="apple-mobile-web-app-capable" content="yes"/>
	    <meta http-equiv="X-UA-Compatible" content="IE=edge">
	    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
	   	<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
		<title></title>
		<link rel="stylesheet" href="/Public/shareGoods/css/goods.css" />
		<link rel="stylesheet" href="/Public/shareGoods/css/iconfont/iconfont.css" />
		<link rel="stylesheet" href="/Public/shareGoods/css/swiper-3.4.2.min.css" />
		<script src="/Public/shareGoods/js/swiper-3.4.2.min.js"></script>
	</head>
	<body>
		<div id="content">
			<section class="advertising">
				<img src="/Public/shareGoods/img/食安购.png" alt="" />
				<h3>下载注册食安购</h3>
				<p>免费领取食安购新人专属好礼</p>
				<button onclick = "downLoad()">下载APP</button>
			</section>
			<section id="goodsContent">
				<div id="goodsShop">
					<dl>
						<dt><img src="http://test.shiangou.com.cn/<?php echo ($List["merchant_thumb"]); ?>" alt="" /></dt>
						<dd>
							<h4><?php echo ($List["merchant_name"]); ?></h4>
							<p class="popularity">人气：<img src="/Public/shareGoods/img/星@2x.png" alt="" /></p>
							<p class="money">￥<?php echo ($List["average"]); ?>/人 <?php echo ($List["address"]); ?></p>
						</dd>
					</dl>
					<div id="address">
						<p><img src="/Public/shareGoods/img/定位-4@2x.png" alt="" /> <?php echo ($List["address"]); ?></p>
						<img src="/Public/shareGoods/img/电话@2x.png" alt="" />
					</div>
				</div>
				<div id="goodsEvalute">
					<h3><span>网友点评(<?php echo ($List["count"]); ?>)</span><img src="/Public/shareGoods/img/返回-2@2x.png" alt="" /></h3>
				</div>
				<div id="evaluteDetails">
				<?php if(is_array($List["comment"])): foreach($List["comment"] as $key=>$values): ?><dl>
						<dt><img src="<?php echo ($values["user_pic"]); ?>" alt="" /></dt>
						<dd>
							<h3><?php echo ($values["nick_name"]); ?></h3>
							<p class="popularity"><span>人气：<img src="/Public/shareGoods/img/星@2x.png" alt="" /></span><span><?php echo date("Y-m-d",$values['datetime']); ?></span></p>
							<p class="descrip"><?php echo ($values["details"]); ?></p>
							<ul>
								<?php if(is_array($values["photoList"])): foreach($values["photoList"] as $key=>$vals): ?><li><img src="<?php echo ($vals["path"]); ?>" alt="" /></li><?php endforeach; endif; ?>
							</ul>
						</dd>
					</dl><?php endforeach; endif; ?>
				</div>
			</section>
		</div>
	</body>
	<script>
		var mySwiper = new Swiper('#roasting',{
			pagination : '.swiper-pagination',
			autoplay: 3000,
			autoplayDisableOnInteraction: false,
			loop: true
		})
	</script>
	<script>
		function downLoad(){
			var u = navigator.userAgent, app = navigator.appVersion;
			var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //android终端或者uc浏览器
			var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
				if(isAndroid){
					location.href="http://openbox.mobilem.360.cn/index/d/sid/3897438";
				}else{
					location.href="https://itunes.apple.com/us/app/食安购/id1278268514?l=zh&ls=1&mt=8";
				}
		}
	</script>
</html>